package com.ruoyi.system.service.honor.impl;

import java.util.List;

import com.ruoyi.system.domain.honor.studentaward.StudentAwardMember;
import com.ruoyi.system.mapper.honor.StudentAwardMemberMapper;
import com.ruoyi.system.service.honor.IStudentAwardMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 指导学生竞赛成员Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-13
 */
@Service
public class StudentAwardMemberServiceImpl implements IStudentAwardMemberService
{
    @Autowired
    private StudentAwardMemberMapper studentAwardMemberMapper;

    /**
     * 查询指导学生竞赛成员
     * 
     * @param id 指导学生竞赛成员主键
     * @return 指导学生竞赛成员
     */
    @Override
    public StudentAwardMember selectStudentAwardMemberById(Long id)
    {
        return studentAwardMemberMapper.selectStudentAwardMemberById(id);
    }

    /**
     * 查询指导学生竞赛成员列表
     * 
     * @param studentAwardMember 指导学生竞赛成员
     * @return 指导学生竞赛成员
     */
    @Override
    public List<StudentAwardMember> selectStudentAwardMemberList(StudentAwardMember studentAwardMember)
    {
        return studentAwardMemberMapper.selectStudentAwardMemberList(studentAwardMember);
    }

    /**
     * 新增指导学生竞赛成员
     * 
     * @param studentAwardMember 指导学生竞赛成员
     * @return 结果
     */
    @Override
    public int insertStudentAwardMember(StudentAwardMember studentAwardMember)
    {
        return studentAwardMemberMapper.insertStudentAwardMember(studentAwardMember);
    }

    /**
     * 修改指导学生竞赛成员
     * 
     * @param studentAwardMember 指导学生竞赛成员
     * @return 结果
     */
    @Override
    public int updateStudentAwardMember(StudentAwardMember studentAwardMember)
    {
        return studentAwardMemberMapper.updateStudentAwardMember(studentAwardMember);
    }

    /**
     * 批量删除指导学生竞赛成员
     * 
     * @param ids 需要删除的指导学生竞赛成员主键
     * @return 结果
     */
    @Override
    public int deleteStudentAwardMemberByIds(Long[] ids)
    {
        return studentAwardMemberMapper.deleteStudentAwardMemberByIds(ids);
    }

    /**
     * 删除指导学生竞赛成员信息
     * 
     * @param id 指导学生竞赛成员主键
     * @return 结果
     */
    @Override
    public int deleteStudentAwardMemberById(Long id)
    {
        return studentAwardMemberMapper.deleteStudentAwardMemberById(id);
    }
}
